<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix = "c" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix = "fmt" %>
<%@page isELIgnored="false"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<h3>${sessionScope.user.uname }的订单</h3>
	<table>
	 <c:forEach items="${sessionScope.records }" var="rr" varStatus="a" >
	 	<tr>
	 		<td><h4>${a.index }&nbsp;&nbsp;&nbsp;&nbsp;</h4></td>
	 	    <td><h3>书本id：${rr.bid }&nbsp;&nbsp;&nbsp;&nbsp;</h3></td>
	 	    <td><h3>数量：${rr.amount }&nbsp;&nbsp;&nbsp;&nbsp;</h3></td>
	 	</tr>
	 </c:forEach>
	</table>
	<a href="shopping.jsp">返回商品目录</a>
	&nbsp;&nbsp;&nbsp;&nbsp;
	&nbsp;&nbsp;&nbsp;&nbsp;
	&nbsp;&nbsp;&nbsp;&nbsp;
	<a href="buyconfirm">确认购买</a>
</body>
</html>